﻿<%@ Page Title="Order Details" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Order.aspx.cs" Inherits="IFD2.Order" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link href="Datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>

    <form id="form1" runat="server" role="form" class="form-inline" defaultbutton="lbtnQuery">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="container-fluid body-content" style="width:100%;">

    <div class="row">
        <div class="col-sm-2 well well-sm">
            <h5><asp:Literal ID="litTitle" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h5>
            <div class="form-group">
                <asp:Label ID="Label1" runat="server" Text="Order No.:" meta:resourcekey="OrderNo"></asp:Label>
                <asp:TextBox ID="txtOrderNo" runat="server" CssClass="form-control input-sm" Width="100%" MaxLength="20"></asp:TextBox>
            </div>
            <br class="hidden-xs"/><br class="hidden-xs"/>
            <asp:LinkButton ID="lbtnQuery" runat="server" CssClass="form-control input-sm btn-primary text-center" Width="100%" ToolTip="" meta:resourcekey="tipQuery" OnClick="lbtnQuery_Click"> <span class="glyphicon glyphicon-search" style="font-size:large;"></span></asp:LinkButton>
            <asp:Button ID="btnLogs" runat="server" Text="Logs..." OnClick="btnLogs_Click"  meta:resourcekey="Logs" CssClass="form-control input-sm btn-primary text-center" Width="100%" />
            <p></p><%--没有此行(或&nbsp;)，上面的按钮在手机模式(xs)下，只有上半部可以点击！--%>

            <div class="hidden-xs">
                <div id="myScrollspy" data-spy="affix"><!--data-offset-top="150" data-offset-bottom="100" --><!-- id="myScrollspy"-->
                    <ul class="nav nav-tabs nav-stacked">
                        <li class="active"><a href="#secCommonInfo"><asp:Literal ID="Literal6" meta:resourcekey="secCommonInfo" runat="server"></asp:Literal></a></li>
                        <li><a href="#secValueAddedServices"><asp:Literal ID="Literal7" meta:resourcekey="secValueAddedServices" runat="server"></asp:Literal></a></li>
                        <li><a href="#secPayment"><asp:Literal ID="Literal8" meta:resourcekey="secPayment" runat="server"></asp:Literal></a></li>
                        <li><a href="#secTripsInformation"><asp:Literal ID="Literal9" meta:resourcekey="secTripsInformation" runat="server"></asp:Literal></a></li>
                        <li><a href="#secPassengersList"><asp:Literal ID="Literal12" meta:resourcekey="secPassengersList" runat="server"></asp:Literal></a></li>
                        <li><a href="#secNotes"><asp:Literal ID="Literal10" meta:resourcekey="secNotes" runat="server"></asp:Literal></a></li>
                    </ul>
                </div>
            </div>

            <asp:HiddenField ID="hidOrderNo" runat="server" />
        </div>

        <div class="col-sm-10 well well-sm">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
            <div class="panel panel-default">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="secCommonInfo"><!--统一h6,有专用css-->
                    <a data-toggle="collapse"  href="#tipCommonInfo">
                        <asp:Literal ID="Literal1" runat="server" meta:resourcekey="CommonInfo" Text="CommonInfo"></asp:Literal>
                        &nbsp;<b class="caret"></b>
                    </a>
                    </h6>
                </div>
                <div id="tipCommonInfo" class="panel-body panel-collapse collapse in">
                    <div class="table-responsive">
                        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" CellPadding="4" style="min-width:300px;" class="table-hover"
                            DataSourceID="dsCommon" ForeColor="#333333" GridLines="None" Height="50px" Width="281px" DataKeyNames="bk_id">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
                            <EditRowStyle BackColor="#2461BF" />
                            <RowStyle BackColor="#EFF3FB" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <Fields>
                                <asp:BoundField DataField="bk_id" HeaderText="bk_id" ReadOnly="True" SortExpression="bk_id"  meta:resourcekey="bk_id" />
                                <asp:BoundField DataField="create_date" HeaderText="create_date" SortExpression="create_date"  meta:resourcekey="create_date" />
                                <asp:BoundField DataField="status" HeaderText="status" SortExpression="status"  meta:resourcekey="order_status" />
                                <asp:BoundField DataField="seg_total" HeaderText="seg_total" SortExpression="seg_total"  meta:resourcekey="seg_total" />
                                <asp:BoundField DataField="adt_count" HeaderText="adt_count" SortExpression="adt_count"  meta:resourcekey="adt_count" />
                                <asp:BoundField DataField="chd_count" HeaderText="chd_count" SortExpression="chd_count"  meta:resourcekey="chd_count" />
                                <asp:BoundField DataField="inf_count" HeaderText="inf_count" SortExpression="inf_count"  meta:resourcekey="inf_count" />
                                <asp:BoundField DataField="curr_pax_sn" HeaderText="curr_pax_sn" SortExpression="curr_pax_sn"  meta:resourcekey="curr_pax_sn" visible="False"/>
                                <asp:BoundField DataField="contact_man" HeaderText="contact_man" SortExpression="contact_man"  meta:resourcekey="contact_man" />
                                <asp:BoundField DataField="mobile_phone" HeaderText="mobile_phone" SortExpression="mobile_phone"  meta:resourcekey="mobile_phone" />
                                <asp:BoundField DataField="phone" HeaderText="phone" SortExpression="phone"  meta:resourcekey="phone" />
                                <asp:BoundField DataField="email" HeaderText="email" SortExpression="email"  meta:resourcekey="email" />
                                <asp:BoundField DataField="address" HeaderText="address" SortExpression="address"  meta:resourcekey="address" />
                                <asp:BoundField DataField="post_code" HeaderText="post_code" SortExpression="post_code"  meta:resourcekey="post_code" />
                                <asp:BoundField DataField="sell_office" HeaderText="sell_office" SortExpression="sell_office"  meta:resourcekey="sell_office" />
                                <asp:BoundField DataField="sell_user" HeaderText="sell_user" SortExpression="sell_user"  meta:resourcekey="sell_user" />
                                <asp:BoundField DataField="pay_before" HeaderText="pay_before" SortExpression="pay_before"  meta:resourcekey="pay_before" />
                                <asp:CheckBoxField DataField="is_group" HeaderText="is_group" SortExpression="is_group" meta:resourcekey="is_group" />
                                <asp:BoundField DataField="pay_currency" HeaderText="pay_currency" SortExpression="pay_currency"  meta:resourcekey="pay_currency" />
                                <asp:BoundField DataField="total_fare" HeaderText="total_fare" SortExpression="total_fare"  meta:resourcekey="total_fare" />
                                <asp:BoundField DataField="pay_type" HeaderText="pay_type" SortExpression="pay_type"  meta:resourcekey="pay_type" />
                                <asp:BoundField DataField="pay_office" HeaderText="pay_office" SortExpression="pay_office"  meta:resourcekey="pay_office" />
                                <asp:BoundField DataField="pay_user" HeaderText="pay_user" SortExpression="pay_user"  meta:resourcekey="pay_user" />
                                <asp:BoundField DataField="pay_time" HeaderText="pay_time" SortExpression="pay_time"  meta:resourcekey="pay_time" />
                            </Fields>
                            <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:DetailsView>

                        <asp:SqlDataSource ID="dsCommon" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" SelectCommand="bll_bk_get_root_info" SelectCommandType="StoredProcedure" OnSelected="dsCommon_Selected" DataSourceMode="DataReader">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:SessionParameter Name="office" SessionField="OFFICE" Type="String" />
                                <asp:SessionParameter Name="office_type" SessionField="OFFICE_TYPE" Type="String" />
                                <asp:SessionParameter Name="user_airline" SessionField="AIRLINE" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>
                    <asp:Label ID="Label10" runat="server" Text="Note:"  meta:resourcekey="order_note" Font-Italic="true"></asp:Label><br />
                    <asp:Label ID="lblError" runat="server" CssClass="ifdMessage"></asp:Label><br />
                    <div class="btn-group">
                        <asp:Button ID="btnCommit" runat="server" Text="Commit Order" OnClick="btnCommit_Click"  meta:resourcekey="CommitOrder" CssClass="btn btn-sm btn-default" />
                        <asp:Button ID="btnCancel" runat="server" Text="Cancel Order" OnClick="btnCancel_Click"  meta:resourcekey="CancelOrder" CssClass="btn btn-sm btn-default" />
                    </div>

                    <div class="well well-sm">
                        <div class="form-group">
                        <asp:Label ID="Label5" runat="server" Text="Pay Time Limit(UTC Time):" meta:resourcekey="PayTimeLimitUTCTime"></asp:Label>
                        <asp:TextBox ID="txtPayBefore2" runat="server" CssClass="form_datetime" Width="126px"></asp:TextBox>
                        </div>
                        <asp:Button ID="btnPayBefore" runat="server" Text="Set Pay Time Limit" OnClick="btnPayBefore_Click"  meta:resourcekey="SetPayTimeLimit" CssClass="btn btn-sm btn-default" />
                    </div>

                    <div class="well well-sm">
                        <div class="form-group">
                        <asp:Label ID="Label278" runat="server" Text="Language:" meta:resourcekey="Language"></asp:Label>
                        &nbsp;<asp:DropDownList ID="lstLang" runat="server" DataSourceID="sqlLang" 
                            DataTextField="name" DataValueField="code" ondatabound="lstLang_DataBound" 
                            onselectedindexchanged="lstLang_SelectedIndexChanged">
                        </asp:DropDownList>
                        </div>
                        <asp:Button ID="btnReceipts" runat="server" Text="All Pax. Receipts..."  meta:resourcekey="AllPaxReceipts" CssClass="btn btn-sm btn-default" />
                        <asp:SqlDataSource ID="sqlLang" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" 
                            SelectCommand="bll_lang_get_codes" SelectCommandType="StoredProcedure">
                        </asp:SqlDataSource>
                    </div>
                </div>
            </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>
            <div class="panel panel-default">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="secValueAddedServices"><!--统一h6,有专用css-->
                    <a data-toggle="collapse"  href="#tipValueAddedServices">
                        <asp:Literal ID="Literal3" runat="server" meta:resourcekey="ValueAddedServices" Text="ValueAddedServices"></asp:Literal>
                        &nbsp;<b class="caret"></b>
                    </a>
                    </h6>
                </div>
                <div id="tipValueAddedServices" class="panel-body panel-collapse collapse in">
                    <div class="table-responsive">
                        <asp:GridView ID="grdEmd" runat="server" AutoGenerateColumns="False"  style="min-width:1200px;width:100%;" class="table-hover"
                            CellPadding="4" DataKeyNames="bk_id,pax_sn,cart_time" DataSourceID="sqlEmdCart" ForeColor="#333333" GridLines="None">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <input name="emdKEY" type="radio" value='<%#Eval("bk_id")+"|"+Eval("pax_sn")+"|"+Eval("cart_time") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="pax_sn" HeaderText="pax_sn" meta:resourcekey="pax_sn" SortExpression="pax_sn" />
                                <asp:BoundField DataField="trip_sn" HeaderText="trip_sn" meta:resourcekey="trip_sn" SortExpression="trip_sn" />
                                <asp:TemplateField HeaderText="EMD ID" meta:resourcekey="EMD_ID">
                                    <ItemTemplate>
                                        <%# Eval("emd_airline") + "" + Eval("emd_id")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="emd_name" HeaderText="emd_name" meta:resourcekey="emd_name" SortExpression="emd_name" />
                                <asp:BoundField DataField="emd_note" HeaderText="emd_note" meta:resourcekey="emd_note" SortExpression="emd_note" HtmlEncode="false" />
                                <asp:BoundField DataField="currency" HeaderText="currency" meta:resourcekey="currency1" SortExpression="currency" />
                                <asp:BoundField DataField="price" HeaderText="price" meta:resourcekey="price1" SortExpression="price" />
                                <asp:BoundField DataField="quantity" HeaderText="quantity" meta:resourcekey="quantity1" SortExpression="quantity" />
                                <asp:BoundField DataField="remark" HeaderText="remark" meta:resourcekey="remark1" SortExpression="remark" />
                                <asp:BoundField DataField="done_user" HeaderText="done_user" meta:resourcekey="done_user" SortExpression="done_user" />
                                <asp:BoundField DataField="done_time" HeaderText="done_time" meta:resourcekey="done_time" SortExpression="done_time" />
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>

                        <asp:SqlDataSource ID="sqlEmdCart" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" DataSourceMode="DataReader" 
                            SelectCommand="bll_bk_get_emd_info" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNoEmd" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:SessionParameter Name="lang" SessionField="LANG" Type="Int16" />
                                <asp:SessionParameter Name="user" SessionField="USER" Type="String" />
                                <asp:SessionParameter Name="office" SessionField="OFFICE" Type="String" />
                                <asp:SessionParameter Name="office_type" SessionField="OFFICE_TYPE" Type="String" />
                                <asp:SessionParameter Name="user_airline" SessionField="AIRLINE" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>
                    <asp:Button ID="btnRemoveFromCart" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="RemoveFromCart" onclick="btnRemoveFromCart_Click" Text="Remove from Cart" />

                    <div class="well well-sm">
                        <div class="form-group">
                        <asp:Label ID="Label447" runat="server" Text="Segment No.:" meta:resourcekey="SegNo"></asp:Label>
                        <asp:DropDownList ID="lstTripSn" runat="server" AutoPostBack="True" DataSourceID="sqlTrinSn" DataTextField="trip_sn" DataValueField="trip_sn" 
                        ondatabound="lstTripSn_DataBound" onselectedindexchanged="lstTripSn_SelectedIndexChanged"></asp:DropDownList>
                        </div>
                        <div class="form-group">
                        <asp:Label ID="Label40" runat="server" Text="Merchandise:" meta:resourcekey="Merchandise"></asp:Label>
                        <asp:DropDownList ID="lstEmdID" runat="server" DataSourceID="sqlEmdIDs" DataTextField="name" DataValueField="id">
                        </asp:DropDownList>
                        </div>
                        <asp:Button ID="btnRetreiveMerchan" runat="server" meta:resourcekey="Retreive" OnClick="btnRetreiveMerchan_Click" Text="Retreive" CssClass="btn btn-sm btn-default" />
                        <br />
                        <div class="form-group">
                        <asp:Label ID="Label46" runat="server" meta:resourcekey="Price" Text="Price:"></asp:Label>
                        <asp:Label ID="lblCurrency" runat="server"></asp:Label>
                        <asp:Label ID="lblPrice" runat="server"></asp:Label>/<asp:Label ID="lblUnit" runat="server"></asp:Label>
                        </div>
                        <br class="hidden-xs" />
                        <asp:Label ID="Label43" runat="server" meta:resourcekey="Note" Text="Note:"></asp:Label>
                        <br />
                        <asp:TextBox ID="txtEmdNote" runat="server" BackColor="#E0E0E0" Height="48px" ReadOnly="True" TextMode="MultiLine" Width="100%"></asp:TextBox>
                        <br /><br />
                        <div class="form-group">
                        <asp:Label ID="Label446" runat="server" meta:resourcekey="PaxNo" Text="Pax No.:"></asp:Label>
                        <asp:DropDownList ID="lstPaxSn" runat="server" DataSourceID="sqlPaxSn" DataTextField="pax_sn" DataValueField="pax_sn">
                        </asp:DropDownList>
                        </div>
                        <div class="form-group">
                        <asp:Label ID="Label44" runat="server" meta:resourcekey="Quantity" Text="Quantity:"></asp:Label>
                        <asp:TextBox ID="txtQuantity" runat="server" Width="49px">1.0</asp:TextBox>
                        </div>
                        <br class="hidden-xs" />
                        <asp:Label ID="Label275" runat="server" meta:resourcekey="Remark" Text="Remark:"></asp:Label>
                        <asp:TextBox ID="txtEmdRemark" runat="server" MaxLength="50" Width="100%"></asp:TextBox>
                        <asp:Button ID="BtnAddToCart" runat="server" meta:resourcekey="AddToCart" onclick="BtnAddToCart_Click" Text="Add to Cart" CssClass="btn btn-sm btn-default" />
                        <br />
                        <asp:Label ID="lblEmdError" runat="server" CssClass="ifdMessage"></asp:Label>

                        <asp:HiddenField ID="hidOrderNoEmd" runat="server" />
                        <asp:SqlDataSource ID="sqlTrinSn" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" 
                            SelectCommand="bll_bk_get_trip_sn" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:SqlDataSource ID="sqlPaxSn" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" 
                            SelectCommand="bll_bk_get_pax_sn" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" 
                                    Type="Int64" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:SqlDataSource ID="sqlEmdIDs" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" DataSourceMode="DataReader" 
                            SelectCommand="bll_bk_get_avail_emd_names_by_trip" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:ControlParameter ControlID="lstTripSn" Name="trip_sn" PropertyName="SelectedValue" Type="Byte" />
                                <asp:SessionParameter Name="lang" SessionField="LANG" Type="Int16" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>
                </div>
            </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:UpdatePanel ID="UpdatePanel3" runat="server"><ContentTemplate>
            <div class="panel panel-default">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="secPayment"><!--统一h6,有专用css-->
                    <a data-toggle="collapse"  href="#tipPayment">
                        <asp:Literal ID="Literal5" runat="server" meta:resourcekey="Payment" Text="Payment"></asp:Literal>
                        &nbsp;<b class="caret"></b>
                    </a>
                    </h6>
                </div>
                <div id="tipPayment" class="panel-body panel-collapse collapse in">
                    <div class="well well-sm">
                        <div class="form-group">
                        <asp:Label ID="Label111" runat="server" meta:resourcekey="PayCurrency" Text="Pay Currency:"></asp:Label>
                        <asp:DropDownList ID="lstCurrency" runat="server" DataSourceID="SqlDataSource2" DataTextField="name" DataValueField="code">
                        </asp:DropDownList>
                        </div>
                        <asp:Button ID="btnCalculate" runat="server" meta:resourcekey="CalculateTotal" OnClick="btnCalculate_Click" Text="Calculate Total" CssClass="btn btn-sm btn-default" /><br />
                        <br />
                        <div class="form-group">
                        <asp:Label ID="Label3" runat="server" meta:resourcekey="TotalFare" Text="Total Fare:"></asp:Label>
                        <asp:Label ID="lblTotal" runat="server" Font-Bold="True">?</asp:Label>
                        </div>
                        <asp:Button ID="btnPay" runat="server" OnClick="btnPay_Click" Text="Pay" meta:resourcekey="Pay" CssClass="btn btn-sm btn-default" />
                        <asp:Button ID="btnHotels" runat="server" PostBackUrl="hotels.aspx" meta:resourcekey="Hotels" Text="Hotels...X" Visible="False" CssClass="btn btn-sm btn-default" />
                        <asp:Button ID="btnPayOnline" runat="server" meta:resourcekey="Pay" Text="Pay Online...X" CssClass="btn btn-sm btn-default" OnClick="btnPayOnline_Click" Enabled="False" Visible="False" />
                        <asp:Button ID="btnPayQuery" runat="server" Text="Payment Query_X" OnClick="btnPayQuery_Click" meta:resourcekey="PayQuery" Enabled="False" CssClass="btn btn-sm btn-default" Visible="False" />
                        <br />
                        <asp:Label ID="lblPayError" runat="server" CssClass="ifdMessage"></asp:Label>
                    </div>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                        DataSourceMode="DataReader" SelectCommand="bll_currency_get_names_by_lang" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:SessionParameter Name="lang" SessionField="LANG" Type="Int16" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:HiddenField ID="hidCurrency" runat="server" />
                    <asp:HiddenField ID="hidPayOrderNo" runat="server" />
                </div>
            </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:UpdatePanel ID="UpdatePanel4" runat="server"><ContentTemplate>
            <div class="panel panel-default">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="secTripsInformation"><!--统一h6,有专用css-->
                    <a data-toggle="collapse"  href="#tipTripsInformation">
                        <asp:Literal ID="Literal2" runat="server" meta:resourcekey="TripsInformation" Text="TripsInformation"></asp:Literal>
                        &nbsp;<b class="caret"></b>
                    </a>
                    </h6>
                </div>
                <div id="tipTripsInformation" class="panel-body panel-collapse collapse in">
                    <div class="table-responsive">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"  style="min-width:1900px;width:100%;" class="table-hover"
                            DataSourceID="dsTrips" ForeColor="#333333" GridLines="None">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText=" " Visible="false"><ItemTemplate>
                                    <input name="KEY" type="radio" value='<%#Eval("trip_sn") %>' />
                                </ItemTemplate></asp:TemplateField>
                                <asp:BoundField DataField="trip_sn" HeaderText="trip_sn" SortExpression="trip_sn"  meta:resourcekey="trip_sn" />
                                <asp:BoundField DataField="ori_city" HeaderText="ori_city" SortExpression="ori_city"  meta:resourcekey="ori_city" />
                                <asp:BoundField DataField="des_city" HeaderText="des_city" SortExpression="des_city"  meta:resourcekey="des_city" />
                                <asp:BoundField DataField="ori_airport" HeaderText="ori_airport" SortExpression="ori_airport"  meta:resourcekey="ori_airport" />
                                <asp:BoundField DataField="des_airport" HeaderText="des_airport" SortExpression="des_airport"  meta:resourcekey="des_airport" />
                                <asp:BoundField DataField="flt_date" HeaderText="flt_date" SortExpression="flt_date"  meta:resourcekey="flt_date" DataFormatString="{0:d}"/>
                                <asp:TemplateField HeaderText="Flight" meta:resourcekey="flight1">
                                    <ItemTemplate>
                                        <%# Eval("airline") +""+ Eval("flt_no")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="dep_time" HeaderText="dep_time" SortExpression="dep_time"  meta:resourcekey="dep_time" />
                                <asp:BoundField DataField="cabin" HeaderText="cabin" SortExpression="cabin"  meta:resourcekey="cabin1" />
                                <asp:BoundField DataField="class" HeaderText="class" SortExpression="class"  meta:resourcekey="class1" />
                                <asp:BoundField DataField="seats" HeaderText="seats" SortExpression="seats"  meta:resourcekey="seats" />
                                <asp:BoundField DataField="status" HeaderText="status" SortExpression="status"  meta:resourcekey="status" />
                                <asp:BoundField DataField="bk_time" HeaderText="bk_time" SortExpression="bk_time"  meta:resourcekey="bk_time" />
                                <asp:BoundField DataField="fare_code" HeaderText="fare_code" SortExpression="fare_code"  meta:resourcekey="fare_code" />
                                <asp:BoundField DataField="fare_cabin" HeaderText="fare_cabin" SortExpression="fare_cabin"  meta:resourcekey="fare_cabin" />
                                <asp:BoundField DataField="fare_class" HeaderText="fare_class" SortExpression="fare_class"  meta:resourcekey="fare_class" />
                                <asp:BoundField DataField="fare_currency" HeaderText="fare_currency" SortExpression="fare_currency"  meta:resourcekey="currency" />
                                <asp:BoundField DataField="final_price" HeaderText="final_price" SortExpression="final_price"  meta:resourcekey="final_price" DataFormatString="{0:N}" />
                                <%--<asp:BoundField DataField="adt_fuel" HeaderText="adt_fuel" SortExpression="adt_fuel"  meta:resourcekey="adt_fuel" DataFormatString="{0:N}" />
                                <asp:BoundField DataField="adt_taxes" HeaderText="adt_taxes" SortExpression="adt_taxes"  meta:resourcekey="adt_taxes" DataFormatString="{0:N}" />--%>
                                <asp:BoundField DataField="chd_price" HeaderText="chd_price" SortExpression="chd_price"  meta:resourcekey="chd_price" DataFormatString="{0:N}" />
                                <%--<asp:BoundField DataField="chd_fuel" HeaderText="chd_fuel" SortExpression="chd_fuel"  meta:resourcekey="chd_fuel" DataFormatString="{0:N}" />
                                <asp:BoundField DataField="chd_taxes" HeaderText="chd_taxes" SortExpression="chd_taxes"  meta:resourcekey="chd_taxes" DataFormatString="{0:N}" />--%>
                                <asp:BoundField DataField="inf_price" HeaderText="inf_price" SortExpression="inf_price"  meta:resourcekey="inf_price" DataFormatString="{0:N}" />
                                <%--<asp:BoundField DataField="inf_fuel" HeaderText="inf_fuel" SortExpression="inf_fuel"  meta:resourcekey="inf_fuel" DataFormatString="{0:N}" />
                                <asp:BoundField DataField="inf_taxes" HeaderText="inf_taxes" SortExpression="inf_taxes"  meta:resourcekey="inf_taxes" DataFormatString="{0:N}" />--%>
                                <asp:BoundField DataField="pay_currency" HeaderText="pay_currency" SortExpression="pay_currency"  meta:resourcekey="pay_currency" />
                            </Columns>
                            <RowStyle BackColor="#EFF3FB" />
                            <EditRowStyle BackColor="#2461BF" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>

                        <asp:SqlDataSource ID="dsTrips" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                            SelectCommand="bll_bk_get_trip_info" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:SessionParameter Name="office" SessionField="OFFICE" Type="String" />
                                <asp:SessionParameter Name="office_type" SessionField="OFFICE_TYPE" Type="String" />
                                <asp:SessionParameter Name="user_airline" SessionField="AIRLINE" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>
                    <asp:Label ID="Label11" runat="server" Text="Note:" meta:resourcekey="seat_note" Font-Italic="true"></asp:Label>
                    <br /><br />
                    <div class="table-responsive">
                        <asp:GridView ID="grdSurcharges" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="bk_id,trip_sn,surcharge_code" DataSourceID="sqlSurcharges" ForeColor="#333333" GridLines="None" style="min-width:600px;width:100%;" class="table-hover">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="trip_sn" HeaderText="trip_sn" ReadOnly="True" SortExpression="trip_sn"  meta:resourcekey="trip_sn" />
                                <asp:BoundField DataField="surcharge_code" HeaderText="surcharge_code" ReadOnly="True" SortExpression="surcharge_code"  meta:resourcekey="trip_sn" />
                                <asp:BoundField DataField="type" HeaderText="type" SortExpression="type"  meta:resourcekey="surcharge_type" />
                                <asp:BoundField DataField="currency" HeaderText="currency" SortExpression="currency"  meta:resourcekey="currency" />
                                <asp:BoundField DataField="adt_price" HeaderText="adt_price" SortExpression="adt_price"  meta:resourcekey="final_price" DataFormatString="{0:N}" />
                                <asp:BoundField DataField="chd_price" HeaderText="chd_price" SortExpression="chd_price"  meta:resourcekey="chd_price" DataFormatString="{0:N}" />
                                <asp:BoundField DataField="inf_price" HeaderText="inf_price" SortExpression="inf_price"  meta:resourcekey="inf_price" DataFormatString="{0:N}" />
                                <asp:BoundField DataField="exch_rate" HeaderText="exch_rate" SortExpression="exch_rate"  meta:resourcekey="transfer_exch_rate" DataFormatString="{0:N}" />
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                        <asp:SqlDataSource ID="sqlSurcharges" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" 
                            SelectCommand="bll_bk_get_surcharges" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:SessionParameter Name="office" SessionField="OFFICE" Type="String" />
                                <asp:SessionParameter Name="office_type" SessionField="OFFICE_TYPE" Type="String" />
                                <asp:SessionParameter Name="user_airline" SessionField="AIRLINE" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>
                    
                    <asp:Label ID="lblErrorK" runat="server" CssClass="ifdMessage"></asp:Label><br />

                    <div class="well well-sm">
                        <div class="form-group">
                        <asp:Label ID="Label450" runat="server" Text="Trip:" meta:resourcekey="SegNo"></asp:Label>
                        <asp:DropDownList ID="lstTripSn2" runat="server" DataSourceID="sqlTrinSn" DataTextField="trip_sn" DataValueField="trip_sn">
                        </asp:DropDownList>
                        </div>
                        <div class="form-group">
                        <asp:Label ID="Label6" runat="server" Text="Action:" meta:resourcekey="Action"></asp:Label>
                        <asp:DropDownList ID="lstAction" runat="server" AutoPostBack="True" onselectedindexchanged="lstAction_SelectedIndexChanged">
                            <asp:ListItem Selected="True" Value="S" meta:resourcekey="Select">Please select...</asp:ListItem>
                            <asp:ListItem Value="K" meta:resourcekey="Kseat">K Seat(s)</asp:ListItem>
                            <asp:ListItem Value="B" meta:resourcekey="Block">Block Seat(s)</asp:ListItem>
                        </asp:DropDownList>
                        </div>
                        <div class="form-group">
                        <asp:Label ID="Label448" runat="server" Text="Cabin:" meta:resourcekey="Cabin"></asp:Label>
                        <asp:DropDownList ID="lstCabin" runat="server" AutoPostBack="True" 
                            DataSourceID="sqlCabins" DataTextField="cabin" DataValueField="cabin" 
                            onselectedindexchanged="lstCabin_SelectedIndexChanged">
                        </asp:DropDownList>
                        </div>
                        <div class="form-group">
                        <asp:Label ID="Label449" runat="server" Text="Class:" meta:resourcekey="Class"></asp:Label>
                        <asp:DropDownList ID="lstClass" runat="server" DataSourceID="sqlClasses" DataTextField="class" DataValueField="class">
                        </asp:DropDownList>
                        </div>
                        <asp:Button ID="butK_Seats" runat="server" Text="K Seats" OnClick="butK_Seats_Click" meta:resourcekey="KSeats" CssClass="btn btn-sm btn-default" />

                        <asp:SqlDataSource ID="sqlCabins" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" 
                            SelectCommand="bll_bk_get_trip_cabins" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:ControlParameter ControlID="lstTripSn2" Name="trip_sn" PropertyName="SelectedValue" Type="Byte" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:SqlDataSource ID="sqlClasses" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>" 
                            SelectCommand="bll_bk_get_trip_classes" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:ControlParameter ControlID="lstTripSn2" Name="trip_sn" PropertyName="SelectedValue" Type="Byte" />
                                <asp:ControlParameter ControlID="lstCabin" Name="cabin" PropertyName="SelectedValue" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>

                    <div class="well well-sm">
                        <asp:Label ID="Label7" runat="server" Text="Cancel Type:" meta:resourcekey="CancelType"></asp:Label>
                        <asp:DropDownList ID="lstCancelTypes" runat="server">
                            <asp:ListItem Value="S" meta:resourcekey="Standby" Text="Standby"></asp:ListItem>
                            <asp:ListItem Value="C" meta:resourcekey="Cancel" Text="Cancel"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:Button ID="btnCancelSeats" runat="server" Text="Cancel Seats" OnClick="btnCancelSeats_Click"  meta:resourcekey="CancelSeats" CssClass="btn btn-sm btn-default" />
                    </div>
                </div>
            </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:UpdatePanel ID="UpdatePanel5" runat="server"><ContentTemplate>
            <div class="panel panel-default">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="secPassengersList"><!--统一h6,有专用css-->
                    <a data-toggle="collapse"  href="#tipPassengersList">
                        <asp:Literal ID="Literal4" runat="server" meta:resourcekey="PassengersList" Text="PassengersList"></asp:Literal>
                        &nbsp;<b class="caret"></b>
                    </a>
                    </h6>
                </div>
                <div id="tipPassengersList" class="panel-body panel-collapse collapse in">
                    <div class="table-responsive">
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" style="min-width:2000px;width:100%;" class="table-hover"
                            DataKeyNames="bk_id,pax_sn" DataSourceID="dsPax" ForeColor="#333333" GridLines="None">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="" SortExpression="bk_id">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl='<%# "Ticket.aspx?tkt_no="+(Convert.ToInt64(Eval("bk_id"))*1000+Convert.ToInt64(Eval("pax_sn"))).ToString() %>'>
                                            <span class="glyphicon glyphicon-file" style="font-size:large;color:orange;"></span>
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="pax_sn" HeaderText="pax_sn" ReadOnly="True" SortExpression="pax_sn"  meta:resourcekey="pax_sn" />
                                <asp:TemplateField HeaderText="PaxName" SortExpression="PaxName" meta:resourcekey="PaxName">
                                    <ItemTemplate>
                                        <%# Eval("family_name")+"/" + Eval("name") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="EnglishName" SortExpression="EnglishName" meta:resourcekey="EnglishName">
                                    <ItemTemplate>
                                        <%# Eval("family_name_en")+"/" + Eval("name_en") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CheckBoxField DataField="male" HeaderText="male" SortExpression="male" meta:resourcekey="male"/>
                                <asp:BoundField DataField="age_type" HeaderText="age_type" SortExpression="age_type"  meta:resourcekey="age_type" />
                                <asp:BoundField DataField="inf_dob" HeaderText="inf_dob" SortExpression="inf_dob"  meta:resourcekey="inf_dob" DataFormatString="{0:d}" />
                                <asp:CheckBoxField DataField="vip" HeaderText="VIP" SortExpression="vip" />
                                <asp:BoundField DataField="remark" HeaderText="remark" SortExpression="remark"  meta:resourcekey="remark1" />
                                <asp:BoundField DataField="nationality" HeaderText="nationality" SortExpression="nationality"  meta:resourcekey="nationality" />
                                <asp:BoundField DataField="id_type" HeaderText="id_type" SortExpression="id_type"  meta:resourcekey="id_type" />
                                <asp:BoundField DataField="id_no" HeaderText="id_no" SortExpression="id_no"  meta:resourcekey="id_no" />
                                <asp:BoundField DataField="id_expired_date" HeaderText="id_expired_date" SortExpression="id_expired_date"  meta:resourcekey="id_expired_date" DataFormatString="{0:d}" />
                                <asp:BoundField DataField="ffp_airline" HeaderText="ffp_airline" SortExpression="ffp_airline"  meta:resourcekey="ffp_airline" />
                                <asp:BoundField DataField="ffp_id" HeaderText="ffp_id" SortExpression="ffp_id"  meta:resourcekey="ffp_id" />
                                <asp:BoundField DataField="pax_value" HeaderText="pax_value" SortExpression="pax_value"  meta:resourcekey="pax_value" />
                                <asp:BoundField DataField="mobile_phone" HeaderText="mobile_phone" SortExpression="mobile_phone"  meta:resourcekey="mobile_phone" />
                                <asp:BoundField DataField="email" HeaderText="email" SortExpression="email"  meta:resourcekey="email" />
                                <asp:CheckBoxField DataField="cancelled" HeaderText="cancelled" SortExpression="cancelled" Visible="False"/>
                                <asp:CheckBoxField DataField="invoice_issued" HeaderText="invoice_issued" SortExpression="invoice_issued" Visible="False"/>
                                <asp:BoundField DataField="invoice_no" HeaderText="invoice_no" SortExpression="invoice_no"  meta:resourcekey="invoice_no" Visible="False"/>
                                <asp:BoundField DataField="issued_office" HeaderText="issued_office" SortExpression="issued_office"  meta:resourcekey="issued_office" Visible="False"/>
                                <asp:BoundField DataField="issued_user" HeaderText="issued_user" SortExpression="issued_user"  meta:resourcekey="issued_user" Visible="False"/>
                                <asp:BoundField DataField="issued_time" HeaderText="issued_time" SortExpression="issued_time"  meta:resourcekey="issued_time" Visible="False"/>
                                <asp:BoundField DataField="done_user" HeaderText="done_user" SortExpression="done_user"  meta:resourcekey="done_user" />
                                <asp:BoundField DataField="done_time" HeaderText="done_time" SortExpression="done_time"  meta:resourcekey="done_time" />
                            </Columns>
                            <RowStyle BackColor="#EFF3FB" />
                            <EditRowStyle BackColor="#2461BF" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>

                        <asp:SqlDataSource ID="dsPax" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                            SelectCommand="bll_bk_get_pax_info" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="hidOrderNo" Name="bk_id" PropertyName="Value" Type="Int64" />
                                <asp:SessionParameter Name="office" SessionField="OFFICE" Type="String" />
                                <asp:SessionParameter Name="office_type" SessionField="OFFICE_TYPE" Type="String" />
                                <asp:SessionParameter Name="user_airline" SessionField="AIRLINE" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>
                    <asp:Button ID="btnEditNames" runat="server" Text="Edit Names..." OnClick="btnEditNames_Click"  meta:resourcekey="EditNames" CssClass="btn btn-sm btn-default" />
                </div>
            </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:UpdatePanel ID="UpdatePanel6" runat="server"><ContentTemplate>
            <div class="panel panel-default">
                <div class="panel-heading btn-primary">
                    <h6 class="panel-title" id="secNotes"><!--统一h6,有专用css-->
                    <a data-toggle="collapse"  href="#tipNotes">
                        <asp:Literal ID="Literal11" runat="server" meta:resourcekey="Notes" Text="Notes"></asp:Literal>
                        &nbsp;<b class="caret"></b>
                    </a>
                    </h6>
                </div>
                <div id="tipNotes" class="panel-body panel-collapse collapse in">
                    <div class="table-responsive">
                        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CellPadding="4"
                            DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" style="min-width:700px;width:100%;" class="table-hover">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#EFF3FB" />
                            <Columns>
                                <asp:BoundField DataField="note" HeaderText="note" SortExpression="note" meta:resourcekey="note1" />
                                <asp:BoundField DataField="office" HeaderText="office" SortExpression="office" meta:resourcekey="office" />
                                <asp:BoundField DataField="done_user" HeaderText="done_user" SortExpression="done_user" meta:resourcekey="done_user"/>
                                <asp:BoundField DataField="done_time" HeaderText="done_time" SortExpression="done_time" meta:resourcekey="done_time"/>
                                <asp:BoundField DataField="ip_addr" HeaderText="ip_addr" SortExpression="ip_addr" meta:resourcekey="ip_addr" Visible="false"/>
                            </Columns>
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>

                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                            SelectCommand="bll_bk_get_note" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                            <SelectParameters>
                                <asp:SessionParameter Name="bk_id" SessionField="BK_ID" Type="Int64" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </div>

                    <div class="well well-sm">
                        <asp:Label ID="Label8" runat="server" Text="New Note:" meta:resourcekey="NewNote"></asp:Label>
                        <asp:TextBox ID="txtNote" runat="server" MaxLength="50" Width="100%"></asp:TextBox>
                        <asp:Button ID="btnAddNote" runat="server" OnClick="btnAddNote_Click" Text="Add Note" meta:resourcekey="AddNote" CssClass="btn btn-sm btn-default"/>
                        <asp:Button ID="btnRefreshNotes" runat="server" OnClick="btnRefreshNotes_Click" Text="Refresh Notes" meta:resourcekey="RefreshNotes" CssClass="btn btn-sm btn-default"/>
                    </div>
                    
                </div>
            </div>
            </ContentTemplate></asp:UpdatePanel>
            
        </div>
    </div>

    </div>
    
    </form>

    <script src="JS/ScrollableGridPlugin.min.js"></script>
    <script src="Datetimepicker/js/bootstrap-datetimepicker.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            var win_height = parseInt($(window).height());
            var tab_new_height= win_height-50-100;//菜单占50， 为便于操作留空100
            if ($('#<%=GridView2.ClientID %>').height()>tab_new_height)
                $('#<%=GridView2.ClientID %>').Scrollable({ ScrollHeight: tab_new_height });

            $('.form_datetime').datetimepicker({
                format: 'yyyy-m-d hh:ii',
                weekStart: 1,
                todayBtn: 1,
                autoclose: 1,
                todayHighlight: 1,
                startView: 'month',
                forceParse: 0,
                showMeridian: 0
            });
            //$('.form_date').datetimepicker({
            //    format: 'yyyy-m-d',
            //    weekStart: 1,
            //    todayBtn: 1,
            //    autoclose: 1,
            //    todayHighlight: 1,
            //    startView: 'month',
            //    minView: 'month',
            //    forceParse: 0
            //});
            //$('.form_time').datetimepicker({
            //    format: 'hh:ii' ,
            //    weekStart: 1,
            //    todayBtn:  1,
            //    autoclose: 1,
            //    todayHighlight: 1,
            //    startView: 'day',
            //    minView: 'hour',
            //    maxView: 'day',
            //    forceParse: 0
            //});
        });
    </script>

    
</asp:Content>
